package com.qsxc.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 推广员提现记录表
 * </p>
 *
 * @author
 * @since 2024-09-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SmPromoterCashRecord对象", description = "推广员提现记录表")
public class SmPromoterCashRecord extends Model<SmPromoterCashRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "创建人")
    @TableField("create_by")
    private Long createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField("update_by")
    private Long updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty(value = "推广员sm_promoter.id")
    @TableField("promoter_id")
    private Long promoterId;

    @ApiModelProperty(value = "提现金额")
    @TableField("amount_money")
    private Double amountMoney;

    @ApiModelProperty(value = "审核人")
    @TableField("examine_user")
    private String examineUser;

    @ApiModelProperty(value = "审核时间")
    @TableField("examine_time")
    private Date examineTime;

    @ApiModelProperty(value = "不通过原因")
    @TableField("refuse_reson")
    private String refuseReson;

    @ApiModelProperty(value = "付款时间")
    @TableField("pay_time")
    private Date payTime;

    @ApiModelProperty(value = "支付订单号(内部使用)")
    @TableField("pay_batch_no")
    private String payBatchNo;

    @ApiModelProperty(value = "付款流水号,支付宝或者微信交流流水")
    @TableField("trade_no")
    private String tradeNo;

    @ApiModelProperty(value = "订单状态 0、未付款  1、已付款  9、已退费")
    @TableField("order_status")
    private String orderStatus;

    @ApiModelProperty(value = "0未提交 1已提交 2审核通过 3审核不通过")
    @TableField("busi_status")
    private String busiStatus;

    @TableField("status")
    private String status;


    public static final String ID = "id";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

    public static final String PROMOTER_ID = "promoter_id";

    public static final String AMOUNT_MONEY = "amount_money";

    public static final String EXAMINE_USER = "examine_user";

    public static final String EXAMINE_TIME = "examine_time";

    public static final String REFUSE_RESON = "refuse_reson";

    public static final String PAY_TIME = "pay_time";

    public static final String PAY_BATCH_NO = "pay_batch_no";

    public static final String TRADE_NO = "trade_no";

    public static final String ORDER_STATUS = "order_status";

    public static final String BUSI_STATUS = "busi_status";

    public static final String STATUS = "status";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
